<style>
div.mod img
{
	width: 100px;
	height: 100px;
	float: left;
	margin-right: 10px;
}
</style>
<div class="body-cont">
	<div class="col-9 row">
		<?php foreach ($news as $row): ?>
		<div class="mod" >
			<?php
				preg_match('/<img[^>]+>/i', $row->content, $matches);
				if (isset($matches[0])) echo $matches[0];
				else echo '123';
			?>
			<h2 class= "Title" <?php echo CHtml::link($row->name, array('/News/view', 'id'=>$row->id)); ?>> </h2>
			<h5><i><?php echo $row->sub_content; ?></i></h5>
			<div style= "clear: left;"></div>
		</div>

	<?php endforeach; ?>
	</div>
</div>